package com.glodon.paas.document.dao.mapper;

import java.util.List;

import com.glodon.paas.document.dao.domain.ProjectRoleEntity;

public interface ProjectRoleMapper {

    int deleteByPrimaryKey(String id);

    int insert(ProjectRoleEntity record);

    int insertSelective(ProjectRoleEntity record);

    ProjectRoleEntity selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ProjectRoleEntity record);

    int updateByPrimaryKey(ProjectRoleEntity record);

    List<ProjectRoleEntity> selectAllRoles(String projectId);
    
    List<ProjectRoleEntity> selectAllRolesByFile(String fileId);
    
    ProjectRoleEntity getDefaultRole(String projectId);

    int checkSameRole(ProjectRoleEntity role);
}
